from functools import wraps


def outer(func):
    @wraps(func)  # 通过@wraps(func)实现完全伪装
    def inner(*args, **kwargs):
        print("from inner")
        res = func(*args, **kwargs)
        return res

    return inner


@outer
def index():
    print('from index')

index()

print(index)
print(help(index))


